package com.sky.mapper;

import com.github.pagehelper.Page;
import com.sky.dto.CategoryPageQueryDTO;
import com.sky.entity.Category;
import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CategoryMapper {

    //修改分类
    void updateCategory(Category category);

    //分类分页查询
    Page<Category> selectPage(CategoryPageQueryDTO query);

    //修改分类状态
    void updateStatusById(Long id);

    //新增分类
    void insertCategory(Category category);

    //删除分类
    void deleteById(Long id);
    //根据类型查询菜品分类
    List<Category> selectByType(Integer type);



}
